import request from '@/utils/request'

// 查询传感器类型列表
export function listInfo(data) {
    return request({
        url: '/navigation/selectHistroyTransducerType?type='+data.type,
        method: 'post'
    })
}

// 瓦斯历史报警列表
export function getInfo(data) {
    return request({
        url: '/navigation/ssHistoryAllAlarm',
        method: 'get',
        params:data
    })
}

// 安全实时列表
export function addInfo(data) {
    return request({
        url: '/navigation/safeAlarmList',
        method: 'get',
        params:data
    })
}

// 弹框中历史轨迹列表
export function updateInfo(query) {
    return request({
        url: '/staff/staffData/selectTrack',
        method: 'get',
        params: query
    })
}

// 删除广播通讯
export function delInfo(id) {
    return request({
        url: '/GisTechnicalData/GisTechnicalData/' + id,
        method: 'delete'
    })
}

export function listurl(query) {
  return request({
    url: '/safeStaffRelation/relation/info',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function exportlist(query) {
  return request({
    url: '/navigation/exportAlarm',
    method: 'post',
      params: query,
     responseType:"blob",//设置响应数据类型为 blob
  })
}
